package io.gitee.cloudladder.obsidian.swagger2.example.entity;

import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

@Data
public class User {

    @ApiModelProperty(value = "primary key", name = "id", example = "1000001")
    private String id;

    @ApiModelProperty(value = "user name", name = "name", example = "Zhang San")
    private String username;

    private String sex;

    private String age;

    public static User newInstance() {
        return new User();
    }

    public User withId(String id) {
        this.id = id;
        return this;
    }

    public User withUsername(String username) {
        this.username = username;
        return this;
    }

    public User withSex(String sex) {
        this.sex = sex;
        return this;
    }

    public User withAge(String age) {
        this.age = age;
        return this;
    }

}
